<?php
namespace app\api\model;

use think\Model;

class Pcollect extends Model
{
    public function user()
    {
        return $this->hasOne('User','u_id','u_id')->field('u_id,name,mail,headpic,place,gender,phone,qq,signature');
    }

    public function img()
    {
        return $this->hasMany('Img','p_id');
    }
    public function zuoping()
    {
        return $this->hasOne('Production','p_id');
    }
}